package cn.tiancaifan.micro.controller.system;


import cn.tiancaifan.micro.entity.SystemResults;
import cn.tiancaifan.micro.service.OplogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/system/oplog")
public class OplogController {

    @Autowired
    OplogService oplogService;

    @GetMapping("/")
    public SystemResults getEmployeeByPage(@RequestParam(defaultValue = "1") Integer page, @RequestParam(defaultValue = "10") Integer size) {
        return oplogService.getOplogByPage(page, size);
    }
}
